FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER faner

RUN mkdir -p /yun/server
RUN mkdir -p /yun/server/logs
RUN mkdir -p /yun/server/temp

WORKDIR /yun/server

ENV SERVER_PORT=8080

EXPOSE ${SERVER_PORT}

ADD ./target/yun.jar ./app.jar

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dserver.port=${SERVER_PORT}","-jar", "app.jar"]
